package com.sz.app.edi.service.send.rest;

import com.sz.app.edi.service.receive.rest.OrdOrderProcessor;
import com.sz.biz.logistics.ord.service.OrdOrderService;
import com.sz.biz.logistics.ord.dto.OrdOrderDto;
import org.apache.camel.builder.RouteBuilder;
import org.springframework.beans.factory.annotation.Autowired;

//@Component
public class OrderMqRouteBuilder extends RouteBuilder {
    @Autowired
    private OrdOrderProcessor ordOrderProcessor;
    @Autowired
    private OrdOrderService orderService;
    @Override
    public void configure() throws Exception {
       OrdOrderDto dto = orderService.findDtoByOrderNo("1706221505390115027182");


        from("direct:start").to("activemq:send.queue");
       // producer.send();
       // from("activemq:send.queue").process(ordOrderProcessor);
    }
}